import Cookies from 'js-cookie'

const TokenKey = 'Authorization'

// 获取cookie当中的token
export function getToken() {
  return Cookies.get(TokenKey)
}

// 设置token到cookie当中
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

// 删除cookie当中的token
export function removeToken() {
  return Cookies.remove(TokenKey)
}
